home *** CD-ROM | disk | FTP | other *** search
-
- --- UNSHAR ---
-
- --- Copywrite 24 September, 1986 ---
- --- John Birchfield ---
- --- 411 Crane Ave. ---
- --- Turlock, CA 95380 ---
- --- (209) 634-6243 ---
-
- Program to decode files created by the shell archive { shar }
- utility on Un*x machines or pc's.
-
- CAPABILITIES:
-
- 1. Able to unshar into a user specified directory or subdirectory
- as specified by a command line option { -Ddirectory_name }
-
- 2. Recognizes the following commands
- cat, sed, uudecode, mkdir, chdir,
- {test -f, test -d, test <number -ne wc ... }
-
- 3. Can handle shar scripts created with the
- Options { -a -v -p -b -c -d }
-
- 4. Successfully traverses directories and sub-directories
- creating the necessary subdirectories as necessary.
-
- OPTIONS:
-
- -T UNSHAR will return TRUE from a test he doesn't
- know how to complete
-
- -D<directory> UNSHAR will build all the files beginning
- at the directory specified. This works on different
- drives also. For example, if you wished the shar
- script in your current directory to be extracted to
- D:/BIN you could enter
-
- UNSHAR -DD:/BIN <shar script file name>
-
- Either '\\' or '/' are acceptable as directory
- node separaters. I happen to prefer '/'.
- Also note that
-
- unshar -d/bin/sub1/sub2/sub3 <filename>
-
- would extract files to that directory { creating
- all necessary sub-directories above it to get
- to that level }. If you left out the leading
- '/' then they would be created on top of the
- current path of the currently logged on drive.
- That is to say that if your current path was
-
- c:/usr/src/c/bin/sub1/sub2/sub3
-
- Possibly not what you had in mind.
-
- Both options may be specified in either upper or lower
- case.
-
- CAVEATS:
- Word Counting between Un*x machines and pc's just isn't
- gonna work out too well. The \r\n - \n thing is not
- an easy thing to work around - and to be quite frank
- I just ain't up to it.
-
- UNSHAR does sub-directory traversal in the same manner
- as Un*x - be advised - the right kind of shar script
- will fill your disk ...
-
- Program written for the Desmet (C-Ware) C Compiler Version 2.61
- not all of the routines in DOS_C.C and DOS_A.A are used by this
- program. The program consists of the following modules:
- UNSHAR.C
- SHAR_CMD.C
- DOS_C.C
- DOS_A.A
-
- This program is hereby placed in the public domain for
- non-commersial use.
-